package com.ys.entity.finance;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
/**
*/
@Table(name="[kjecp_finance].[dbo].TCW_FinancesEventGroupsOp", catalog="Id")
public class TcwFinancesEventGroupsOp extends BaseEntity<TcwFinancesEventGroupsOp> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="FinancialEventGroupId", nameJava="financialEventGroupId", typeDataBase="varchar")
	private String financialEventGroupId;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="RegionCode", nameJava="regionCode", typeDataBase="varchar")
	private String regionCode;
	@YsField(nameDataBase="ShopName", nameJava="shopName", typeDataBase="varchar")
	private String shopName;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="StartDate", nameJava="startDate", typeDataBase="datetime")
	private Date startDate;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="EndDate", nameJava="endDate", typeDataBase="datetime")
	private Date endDate;
	@YsField(nameDataBase="CurrencyAmount", nameJava="currencyAmount", typeDataBase="decimal")
	private BigDecimal currencyAmount;
	@YsField(nameDataBase="CompanyID", nameJava="companyID", typeDataBase="varchar")
	private String companyID;
	@YsField(nameDataBase="ConvertedTotal", nameJava="convertedTotal", typeDataBase="decimal")
	private BigDecimal convertedTotal;
	@YsField(nameDataBase="Currency", nameJava="currency", typeDataBase="varchar")
	private String currency;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwFinancesEventGroupsOp setId(Long id) {
		this.id = id;
		return this;
	}
	public String getFinancialEventGroupId() {
		return financialEventGroupId;
	}
	public TcwFinancesEventGroupsOp setFinancialEventGroupId(String financialEventGroupId) {
		this.financialEventGroupId = financialEventGroupId;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public TcwFinancesEventGroupsOp setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public String getRegionCode() {
		return regionCode;
	}
	public TcwFinancesEventGroupsOp setRegionCode(String regionCode) {
		this.regionCode = regionCode;
		return this;
	}
	public String getShopName() {
		return shopName;
	}
	public TcwFinancesEventGroupsOp setShopName(String shopName) {
		this.shopName = shopName;
		return this;
	}
	public Date getStartDate() {
		return startDate;
	}
	public TcwFinancesEventGroupsOp setStartDate(Date startDate) {
		this.startDate = startDate;
		return this;
	}
	public Date getEndDate() {
		return endDate;
	}
	public TcwFinancesEventGroupsOp setEndDate(Date endDate) {
		this.endDate = endDate;
		return this;
	}
	public BigDecimal getCurrencyAmount() {
		return currencyAmount;
	}
	public TcwFinancesEventGroupsOp setCurrencyAmount(BigDecimal currencyAmount) {
		this.currencyAmount = currencyAmount;
		return this;
	}
	public String getCompanyID() {
		return companyID;
	}
	public TcwFinancesEventGroupsOp setCompanyID(String companyID) {
		this.companyID = companyID;
		return this;
	}
	public BigDecimal getConvertedTotal() {
		return convertedTotal;
	}
	public TcwFinancesEventGroupsOp setConvertedTotal(BigDecimal convertedTotal) {
		this.convertedTotal = convertedTotal;
		return this;
	}
	public String getCurrency() {
		return currency;
	}
	public TcwFinancesEventGroupsOp setCurrency(String currency) {
		this.currency = currency;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwFinancesEventGroupsOp setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwFinancesEventGroupsOp setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwFinancesEventGroupsOp setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwFinancesEventGroupsOp tcwFinancesEventGroupsOp(
		String financialEventGroupId,
		String currencyCode,
		String regionCode,
		String shopName,
		Date startDate,
		Date endDate,
		BigDecimal currencyAmount,
		String companyID,
		BigDecimal convertedTotal,
		String currency,
		Integer status
			) {
		TcwFinancesEventGroupsOp entity = new TcwFinancesEventGroupsOp();
		entity.setFinancialEventGroupId(financialEventGroupId);
		entity.setCurrencyCode(currencyCode);
		entity.setRegionCode(regionCode);
		entity.setShopName(shopName);
		entity.setStartDate(startDate);
		entity.setEndDate(endDate);
		entity.setCurrencyAmount(currencyAmount);
		entity.setCompanyID(companyID);
		entity.setConvertedTotal(convertedTotal);
		entity.setCurrency(currency);
		entity.setStatus(status);
		return entity;
	}
}